// 电子签章校验配置-列表查询条件配置
export const formOption = {
    size: 'mini',
    inline: true,
    labelWidth: '160px',
    itemData: [
        {
            type: 'select',
            prop: 'businessType',
            value: '',
            width: '',
            colSpan: 6,
            label: '业务专业',
            clearable: true,
            dicType: 'IS_NEWBUSINESS',
            dicProp: {
                label: 'dictName',
                value: 'dictId'
            }
        },
        {
            type: 'select',
            prop: 'prjType',
            value: '',
            width: '',
            colSpan: 6,
            clearable: true,
            label: '项目类型',
            dicType: 'PROJ_TYPE',
            dicProp: {
                label: 'dictName',
                value: 'dictId'
            }
        },
        {
            type: 'select',
            prop: 'buildModes',
            value: '',
            width: '',
            colSpan: 6,
            clearable: true,
            label: '建设方式',
            dicType: 'BUILD_MODES',
            dicProp: {
                label: 'dictName',
                value: 'dictId'
            }
        },
        {
            type: 'select',
            prop: 'prjNodeId',
            value: '',
            width: '',
            colSpan: 6,
            clearable: true,
            label: '项目节点',
            dicType: 'SIGN_CHEKC_NODE',
            // dicType: 'PRO_NODE',
            dicProp: {
                label: 'dictName',
                value: 'dictId'
            }
        },
        {
            type: 'slot',
            prop: 'orgIds',
            size: 'small',
            colSpan: 6,
            clearable: true,
            width: '',
            value: [],
            label: '建设单位'
        }
    ]
}

// 列表表头
export const colOption = [
    // { label: '业务类型', width: '', prop: 'businessType' },
    { label: '业务类型', width: '', prop: 'businessType', dicType: 'IS_NEWBUSINESS', dicProp: { label: 'dictName', value: 'dictId' }},
    // { label: '项目类型', width: '', prop: 'prjType' },
    { label: '项目类型', width: '', prop: 'prjType', dicType: 'PROJ_TYPE', dicProp: { label: 'dictName', value: 'dictId' }},
    // { label: '建设方式', width: '', prop: 'buildModes' },
    { label: '建设方式', width: '', prop: 'buildModes', dicType: 'BUILD_MODES', dicProp: { label: 'dictName', value: 'dictId' }},
    { label: '当前节点', width: '', prop: 'prjNodeId' },
    // { label: '当前节点', width: '', prop: 'prjNodeId', dicType: 'SIGN_CHEKC_NODE', dicProp: { label: 'dictName', value: 'dictId' }},
    // { label: '建设单位', width: '', prop: 'orgId' },
    { label: '建设单位', width: '', prop: 'orgId', dicType: 'BUILD_UNIT', dicProp: { label: 'orgName', value: 'orgId' }},
    // { label: '建设单位', width: '', prop: 'orgId' },
    { label: '是否校验', width: '', prop: 'checkState', filter: { '1': '是', '0': '否' }}
]

// 列表操作按钮
export const btnOption = [
    { label: '新增', fun: 'add', type: '' },
    { label: '编辑', fun: 'edit', type: '' },
    { label: '删除', fun: 'delete', type: '' }
]

// 弹框表单数据
export const addFormOption = {
    size: 'mini',
    inline: true,
    labelWidth: '160px',
    itemData: [
        {
            label: '业务专业',
            prop: 'businessType',
            type: 'select',
            value: '',
            colSpan: 12,
            size: 'mini',
            clearable: true,
            width: '',
            rule: [
                { required: true, message: '请选择业务专业', trigger: 'change' }
            ],
            dicType: 'IS_NEWBUSINESS',
            dicProp: {
                label: 'dictName',
                value: 'dictId'
            }
        },
        {
            type: 'select',
            prop: 'prjType',
            width: '',
            label: '项目类型',
            value: '',
            clearable: true,
            colSpan: 12,
            size: 'mini',
            rule: [
                { required: true, message: '请选择项目类型', trigger: 'change' }
            ],
            dicType: 'PROJ_TYPE',
            dicProp: {
                label: 'dictName',
                value: 'dictId'
            }
        },
        {
            type: 'select',
            prop: 'buildModes',
            width: '',
            size: 'mini',
            clearable: true,
            colSpan: 12,
            value: '',
            label: '建设方式',
            rule: [
                { required: true, message: '请选择建设方式', trigger: 'change' }
            ],
            dicType: 'BUILD_MODES',
            dicProp: {
                label: 'dictName',
                value: 'dictId'
            }
        },
        {
            type: 'select',
            prop: 'prjNodeId',
            size: 'mini',
            width: '',
            colSpan: 12,
            clearable: true,
            value: '',
            label: '项目节点',
            rule: [
                { required: true, message: '请选择项目节点', trigger: 'change' }
            ],
            dicType: 'SIGN_CHEKC_NODE',
            dicProp: {
                label: 'dictName',
                value: 'dictId'
            }
        },
        {
            type: 'slot',
            prop: 'orgId',
            size: 'small',
            colSpan: 12,
            width: '',
            clearable: true,
            value: '',
            label: '建设单位',
            rule: [
                { required: true, message: '请至少选择一个建设单位', trigger: 'change' }
            ]
        },
        {
            type: 'select',
            prop: 'checkState',
            size: 'mini',
            colSpan: 12,
            clearable: true,
            value: '',
            width: '',
            label: '是否开启',
            rule: [
                { required: true, message: '请选择', trigger: 'change' }
            ],
            dicType: 'IS_OPEN',
            dicProp: {
                label: 'dictName',
                value: 'dictId'
            }
        }
    ]
}
